package com.newly.api.sys.feign;

import com.newly.common.base.constants.ServerUriConstant;
import com.newly.common.base.entity.R;
import com.newly.common.base.entity.test.TestBean1;
import io.swagger.annotations.Api;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @program: newly-parent
 * @remark: 测试
 * @author: guan
 * @create: 2022-01-08 17:07
 */
@Api(tags = "测试api")
@FeignClient(path = ServerUriConstant.NEWLY_SYS_TEST, name = ServerUriConstant.NEWLY_SYS_SERVICE_NAME)
public interface TestClient {

    @GetMapping("/test01")
    R test01();

    @PostMapping("/test02")
    R test02(@RequestBody TestBean1 testBean1);
}
